//
//  JQFYPlayListManger.h
//  JQFY
//
//  Created by 代辉 on 2017/8/18.
//  Copyright © 2017年 yannis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JQFYPlayList.h"
#import "ZWSingleton.h"


typedef void(^MusicData)(void);
@interface JQFYPlayListManger : NSObject

#define _PlaylistMgr ([JQFYPlayListManger sharedInstance])

INTERFACE_SINGLETON(JQFYPlayListManger)

- (void)getMusicData:(MusicData)sussce failure:(MusicData)faliure;

- (void)getHomeRecommendMusic:(void(^)(NSArray *musics)) sucess file:(void(^)(NSError *))file;

// 获取所有的播放列表
- (NSArray<JQFYPlayList *>*)allPlaylists;


// 添加播放列表
- (void)addPlaylist:(JQFYPlayList *)playlist;

// 删除播放列表通过索引
- (void)removePlaylistAtIndex:(NSUInteger)index;

@end
